]> dgit.raspbian.org Git - gnome-shell.git/commit
introspect: Make invocation check error-based
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 2 Sep 2021 14:23:38 +0000 (16:23 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 3 Sep 2021 21:34:58 +0000 (21:34 +0000)
commit3b9e672a09dc6cdd997a579be9b310b60dcbb7bc
tree7c70025f631e9044a217396366fc109d7d2a78cf
parent7298ee23e91b756c7009b4d7687dfd8673856f8b
introspect: Make invocation check error-based

If we throw an error when the invocation isn't allowed instead of
returning false, we can simply return that error instead of duplicating
the error handling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970>
js/misc/introspect.js